/*
 * Isman Usoh<isman.usoh@gmail.com>
 * www.facebook.com/isman.usoh
 */
package com.isman.postcodeinfo.database;

import java.io.Serializable;

public class PostCode  implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	private int id;
	private String address = null;
	private String district;
	private String province;
	private String postcodel;
	private String name;
	private double llong;
	private double llat;
	

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getAddress() {
		if(address == null){
			return "";
		}else{
			return address+" ";
		}
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = "อำเภอ "+district;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = "จังหวัด "+province;
	}

	public String getPostcodel() {
		return postcodel;
	}

	public void setPostcodel(String postcodel) {
		this.postcodel = postcodel;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getLlong() {
		return llong;
	}

	public void setLlong(double llong) {
		this.llong = llong;
	}

	public double getLlat() {
		return llat;
	}

	public void setLlat(double llat) {
		this.llat = llat;
	}
}
